(function () {
    document.addEventListener('DOMContentLoaded', function () {
        var html = document.documentElement;
        var windowWidth = html.clientWidth;
        html.style.fontSize = windowWidth / 6.4 + 'px';
    }, false);
})();


function stopTouchendPropagationAfterScroll(){
    var locked = false;

    window.addEventListener('touchmove', function(ev){
        locked || (locked = true, window.addEventListener('touchend', stopTouchendPropagation, true));
    }, true);
    function stopTouchendPropagation(ev){
        ev.stopPropagation();
        window.removeEventListener('touchend', stopTouchendPropagation, true);
        locked = false;
    }
}



$(document).ready(function() {
   // stopTouchendPropagationAfterScroll();

   //登录密码显示隐藏
   $(".login-box .form .item .icon").on("touchend",function(){
      if($(this).find("img").attr("src")=="images/cld.png"){
         $(this).find("img").attr("src","images/open.png");
         $("#password")[0].type = "text";
      }else{
        $(this).find("img").attr("src","images/cld.png");
        $("#password")[0].type = "password";
      }
   })
      

   //菜单切换
    $(".top-tab li").on("touchend",function(){
        $(".top-tab li span").removeClass("select fontblue");
        $(this).find("span").addClass("select fontblue");
       $(".tab-body").hide().eq($(this).index()).show();
    })
   


    //轮播
   
	});

	 
		 